import axios from "../../axios.js";

export default {
  //已审核
  AUDTED(data) {
    return axios({
      url: '/process/getDoneTasks',
      method: 'post',
      data
    })
  },

  //待审核
  WAITAUDT(data) {
    return axios({
      url: '/process/getToDoTasks',
      method: 'post',
      data
    })
  },

  //我的流程 getToDoTasks
  WAITSEND(data) {
    return axios({
      url: '/process/getMyTasks',
      method: 'post',
      data
    })
  },

  //提交审核
  SUBMIT(data) {
    return axios({
      url: '/process/submit',
      method: 'post',
      data
    })
  },

  //提交审批意见
  AUDTCOMMENT(data) {
    return axios({
      url: '/process/taskApprove',
      method: 'post',
      data
    })
  },

  //流程图
  FLOWCHART(data) {
    return axios({
      url: '/process/getDiagram',
      method: 'get',
      responseType: 'blob',
      params: data
    })
  },


  //审核过程
  AUDTSTEP(data) {
    return axios({
      url: '/process/getProcessLog',
      method: 'get',
      params: data
    })
  },

  //删除流程  
  DELETE(data) {
    return axios({
      url: '/process/delete',
      method: 'get',
      params: data
    })
  },


  //审批同意提交额外数据   /crm/insertContractNo
  GETINSERTCONTRACTNO(data) {
    return axios({
      url: '/crm/insertContractNo',
      method: 'post',
      data,

    })
  },

  //驳回重新提交
  BACK_SUBMIT(data) {
    return axios({
      url: '/crm/updateSignDetail',
      method: 'post',
      data,
      headers: {
        "Content-Type": "application/json"
      }
    })
  },



  // 获取签单详情
  getSignDetailsApi(data) {
    return axios({
      url: '/crm/selectCustomerSignOne',
      method: 'get',
      params: data,
    });
  },

  //特殊费用报销流程
  getSpecialExpenses(data) {
    return axios({
      url: '/frontBackPay/getSpecialExpenses',
      method: 'post',
      data,
    })
  },

  //获取渠道返佣点数详情
  channelCommissionDetail(data) {
    return axios({
      url: '/frontBackPay/channelCommissionDetail',
      method: 'get',
      params: data,
    })
  },

  //新增档案管理
  insertArchives(data) {
    return axios({
      url: '/customerArchives/insertProcess',
      method: 'post',
      data,
    })
  },

  //新增定金
  insertDeposit(data) {
    return axios({
      url: '/collectionDeposit/insertDeposit',
      method: 'post',
      data,
    })
  },

  //获取
  getSignIdByType(data) {
    return axios({
      url: '/singleChannelZlc/getSignIdByType',
      method: 'get',
      params: data,
    })
  },

  //新增渠道专员  singleChannelZlc/addQudaoR

  addQudaoR(data) {
    return axios({
      url: '/singleChannelZlc/addQudaoR',
      method: 'post',
      data,
    })
  },

  //获取签单部门
  selectFrontAndEndCenter(data) {
    return axios({
      url: '/crm/selectFrontAndEndCenter',
      method: 'get',
      params: data,
    })
  },

  //获取档案移交中心
  selectBackUser(data) {
    return axios({
      url: '/crm/selectBackUser',
      method: 'get',
      params: data,
    })
  },

  //信息部修改
  updateSignFeiLv(data) {
    return axios({
      url: '/crm/updateSignFeiLv',
      method: 'post',
      data,
    })
  },
  // 档案管理员同意前判断是否收取定金
  isDeposit_Api(data) {
    return axios({
      url: '/collectionDeposit/isDeposit',
      method: 'get',
      params: data,
    })
  },
  // 之前用有重复信息签过单的人
  customerPeopleLike_Api(data) {
    return axios({
      url: '/crm/customerPeopleLike',
      method: 'get',
      params: data,
    })
  },
};
